package com.lzj.admin.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class GoodsModel {

    @ApiModelProperty(value = "商品id")
    private Integer id;

    @ApiModelProperty(value = "商品编码")
    private String code;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "商品色号")
    private String colorSize;

    @ApiModelProperty(value = "商品销售价")
    private BigDecimal sellingPrice;

    @ApiModelProperty(value = "数量")
    private Integer num;

    @ApiModelProperty(value = "单价")
    private BigDecimal price;

    @ApiModelProperty(value = "总价")
    private BigDecimal total;

    @ApiModelProperty(value = "商品单位名称")
    private String unitName;

    @ApiModelProperty(value = "商品单位id")
    private String unitId;

    @ApiModelProperty(value = "商品类别")
    private Integer typeId;

    @ApiModelProperty(value = "商品类别名称")
    private String typeName;

    @ApiModelProperty(value = "上次进价")
    private BigDecimal lastPurchasingPrice;

    @ApiModelProperty(value = "库存")
    private Integer inventoryQuantity;

    @ApiModelProperty(value = "是否自动生成编码")
    private Integer isAutoCode;

}
